<div ms-controller="function_add">
	<div class="location_box">
		<div class="return_title">
			<a class="return_button" ms-on-click="history"><img src="../img/icon_return.png"/></a>
            <a ms-on-click="load('home_cloud.html')">首页</a>
			<span>&gt;</span>
			<span>权限管理</span>
			<span>&gt;</span>
			<a>新增功能</a>
		</div>
		<div class="button_box">
			<a class="button_save" ms-on-click="save">保存</a>
		</div>
	</div>
	<div class="table_content">
		<div class="searchbox width_190"><label>选择模块名称</label>
			<select>
				<option ms-repeat="module_list" id="{{el.id}}">{{el.name}}</option>
			</select>
		</div>
		<div class="searchbox width_190"><label>定义功能名称</label><input type="text" ms-duplex="function_name"/></div>
		<div class="searchbox width_600"><label>功能描述</label><input type="text" ms-duplex="function_describe"/></div> 
		<table class="function_add_table">
			<thead>
				<tr>
					<td width="8%"><a class="icon" ms-on-click="add_line"><img src="../img/icon_add.png"></a></td>
					<td width="20%">操作名称</td>
					<td width="40%">请求路径</td>
					<td width="40%">操作描述</td>
				</tr>
			</thead>
			<tbody>
				<tr ms-repeat-el="function_list">
					<td><a class="icon" ms-on-click="$remove"><img src="../img/icon_sub.png"></a></td>
					<td ms-repeat-elem="el"><input type="text" name="" ms-duplex="elem"/></td>
				</tr>
			</tbody>
		</table>
	</div>
</div>
<script>
    $(function(){
        $('.table_content').scrollTop( $('.table_content')[0].scrollHeight );
    });
</script>